﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JMBox.Utils
{
    public class FileSelectTool
    {

        /// <summary>
        /// 选择文件路径
        /// </summary>
        /// <returns></returns>
        public static string SelectFilePath()
        {
            string path = string.Empty;
            OpenFileDialog fileDialog = new OpenFileDialog();
            DialogResult result = fileDialog.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                path = fileDialog.FileName;
            }
            return path;
        }

    }
}
